package com.leinao.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;

/**
 * webSocket 配置
 *
 * @author zhong.wang
 * @date 2025/2/5
 */
@ConfigurationProperties("leinao.websocket")
@Data
@Validated
public class WebSocketProperty {
    /**
     * WebSocket 的连接路径
     */
    private String path = "/ws";

    /**
     * 消息发送器的类型
     *
     * 可选值：local、redis
     */
    private String senderType = "local";

}
